{template 'common/header'}

<div class="pull-left col-sm-2 caidan">
		{template 'left_nav'}
	</div>
	
	<div class="pull-left col-sm-10" >



<div class="we7-page-title">接口管理页面</div>
<link rel="stylesheet" type="text/css" href="{MODULE_URL}template/style/main.css">
<script type="text/javascript" src="{MODULE_URL}template/style/main.js"></script>

<form id="reply-forms" action="" method="post" enctype="multipart/form-data" ng-controller="KeywordReply"
	class="ng-pristine ng-valid ng-scope">


<h4>数据API设置</h4>
<div class="panel panel-default">
	<div class="panel-body">
			
			接口API使用权限 需要单独购买，联系QQ1004113364咨询；
			<div class="form-group">
					<label for="lastname" class="col-sm-2 control-label">接口开关</label>
					<div class="col-sm-10">
					  
						<div class="radio">
							<label>
								<input type="radio" name="status" id="shenhe" value="1" {if $info[ 'status']==1 } checked {/if}>开启
							</label>
							<label>
								<input type="radio" name="status" id="shenhe2" value="0" {if $info[ 'status']==0 } checked {/if}>关闭
							</label>
						</div>
						<span class="help-block"><code>开启接口后系统的内容管理目录，将不可在操作;数据将完全从接口中读取。</code></span>
					</div>
				  </div>


			<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">选择接口类型</label>
					<div class="col-sm-3">
							<select name="type" class="form-control">
								<option value="1" {if $info[type] == 1} selected="selected" {/if}>织梦CMS</option>
								<option value="2" {if $info[type] == 2} selected="selected" {/if}>帝国CMS</option>
								<option value="3" {if $info[type] == 3} selected="selected" {/if}>wordpress</option>
						
							</select>
					</div>

					<span class="help-block"><code> <a onclick="dgshuoming()" >帝国接口说明</a></code></span>
				</div>
				<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">接口网址</label>
					<div class="col-sm-10">
						<input type="text" name="site" class="form-control"  placeholder="请输入网址URL"
							value="{$info[site]}">
					</div>
				</div>



			<div class="form-group">
					<label for="firstname" class="col-sm-2 control-label">首页轮播图参数*</label>
					<div class="col-sm-10">
						<input type="text" name="banner_api" class="form-control"  placeholder="请输入接口参数 &enews=13&pageNum=20"
							value="{$info[banner_api]}">
					</div>
				</div>
				<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">列表页轮播图参数*</label>
						<div class="col-sm-10">
							<input type="text" name="banner_list_api" class="form-control"  placeholder="请输入接口参数 &enews=0&cid=58&pageNum=20" 
								value="{$info[banner_list_api]}">
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">首页新闻列表参数*</label>
						<div class="col-sm-10">
							<input type="text" name="news_index_api" class="form-control"  placeholder="请输入接口参数 &pageNum=10&cids=2"
								value="{$info[news_index_api]}">
						</div>
					</div>
					<div class="form-group">
						<label for="firstname" class="col-sm-2 control-label">首页产品列表参数*</label>
						<div class="col-sm-10">
							<input type="text" name="product_index_api" class="form-control"  placeholder="请输入接口参数 &pageNum=10&cids=2"
								value="{$info[product_index_api]}">
						</div>
					</div>


		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">新闻分类参数*</label>
			<div class="col-sm-10">
				<input type="text" name="news_api" class="form-control" placeholder="请输入接口参数 &pageNum=10&cids=2"
					value="{$info[news_api]}">
			</div>
		</div>


		<div class="form-group">
			<label for="firstname" class="col-sm-2 control-label">产品分类参数*</label>
			<div class="col-sm-10">
				<input type="text" name="product_api" class="form-control"  placeholder="请输入接口参数 &pageNum=10&cids=36,37"
					value="{$info[product_api]}">
			</div>
		</div>

	</div>
</div>


<div class="clearfix"></div>
<div class="form-group reply-post-action we7-margin-top" style="text-align: center;">
	<div class="">

		<input type="submit" class="btn btn-primary js-editor-submit multi-submit" style="width:200px" value="保存">

	</div>
</div>


</form>

</div>
{template 'common/footer'}